package com.zzyl.nursing.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.nursing.domain.Device;
import com.zzyl.nursing.domain.DeviceData;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Description DeviceDataVo
 * @Author cangyue
 * @Date 2025-07-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeviceDataVo extends DeviceData {
    /**
     * 事件上报时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "事件上报时间")
    private LocalDateTime eventTime;

    /**
     * 数据值
     */
    @ApiModelProperty(value = "数据值")
    private String value;
}
